<?php
require_once('pasmy/dbwaarden.php');
/*echo "dbhost = $dbhost<br>";*/
echo "<br><br>";
$mysql_id = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($db, $mysql_id);

$sql = "select client,id from clienten";
$res = mysql_query($sql, $mysql_id);
$nombre = 1;

while ($row = mysql_fetch_row($res)) {
	$clienten[$row[1]]=$row[0];
	}
asort($clienten);
$clienten = array_unique($clienten);
//mysql_free_result($mysql_id);

foreach($clienten as $key => $waarde) {
	echo "ID = $key en Client = $waarde<br>";
	/*$sql = "insert into clienten (client) VALUES ('$waarde')";
	$res = mysql_query($sql, $mysql_id);*/
}
//mysql_free_result($mysql_id);*/


?>